$(function() {
	$("form").submit(function() {
		$.mobile.pageLoading();
		X("/api/clients").post({
			body: $(this).serialize(),
			contentType: "application/x-www-form-urlencoded",
			success: function(xhr) {
				alert("success!");
			},
			complete: function() {
				$.mobile.pageLoading(true);
			}
		});
		return false;
	});
});
